package com.platform.api;

import com.google.common.collect.Maps;
import com.platform.annotation.IgnoreAuth;
import com.platform.annotation.LoginUser;
import com.platform.entity.UserVo;
import com.platform.entity.WithdrawVo;
import com.platform.service.ApiShippingService;
import com.platform.service.ApiUserService;
import com.platform.service.ApiWithdrawService;
import com.platform.util.ApiBaseAction;
import com.platform.util.ApiPageUtils;
import com.platform.utils.Query;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.math.BigDecimal;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 作者: @author Harmon <br>
 * 时间: 2017-08-11 08:32<br>
 * 描述: ApiIndexController <br>
 */
@Api(tags = "快递")
@RestController
@RequestMapping("/api/shipping")
public class ApiShippingController extends ApiBaseAction {
    @Autowired
    private ApiShippingService apiShippingService;

    @ApiOperation(value = "快递列表")
    @PostMapping("/list")
    @IgnoreAuth
    public Object list() {
        Map param = Maps.newHashMap();
        param.put("status", 1);
        return toResponsSuccess(apiShippingService.queryList(param));
    }
}